from django.urls import path
from . import views, restful

app_name = 'aiAttendance'
urlpatterns = [
    path('', views.login),
    path('login/', views.login, name='login'),
    path('teacher/', views.teacher, name='teacher'),
    path('student/', views.student, name='student'),
    path('createclass/', views.createclass, name='createclass'),
    path('registers/', views.registers, name='registers'),
    path('checkregister/', views.checkregister, name='checkregister'),
    path('checkmyregister/', views.checkmyregister, name='checkmyregister'),
    path('doregister/', views.doregister, name='doregister'),
    path('upload/', views.upload, name='upload'),
    path('api/students', restful.student),
    path('api/teachers', restful.teacher),
    path('api/classes', restful.clas),
    path('api/register', restful.register),
    path('api/login', restful.login),
    path('api/sign-out', restful.signOut),
    path('api/upload', restful.upload),
    path('api/doregister', restful.doregister),
]